<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
<title>login</title>
<link rel="stylesheet" type="text/css" href="../../css/index.css" />

<style media="screen">

	html,body{background: #FFFFFF;}
	/*input::-webkit-input-placeholder{color: #BBBBBB;font-size: 14px;}
	input::-moz-placeholder{color: #BBBBBB;font-size: 14px;}*/

	.info-box{padding: 30px 30px 0 30px;box-sizing: border-box;width: 100%;}
	.title{font-size: 30px;padding: 0 0 90px 0;box-sizing: border-box;flex-shrink: 0;font-weight: bold;}
	.info-one{height: 44px;margin-bottom: 10px;width: 100%;}
	.info-one input{width: 100%;height: 100%;position:relative;z-index: 999;text-align: center;}
	.login-btn{width: 100%;height:45px;flex-shrink: 0;background:#FF9502;border-radius:4px;text-align: center;line-height: 45px;color: #FFFFFF;font-size: 18px;margin-top: 30px;}
	.info-one.border-all::before{border-radius: 8px;}

</style>
</head>
<body>
	<div id="vue">
		<div class="info-box">
			<div class="title">邀请码</div>
			<div class="info-one border-all">
				<input type="tel" maxlength="7" name="yaoqing" placeholder="请输入" >
			</div>
			<!--登录按钮-->
			<div class="login-btn" tapmode onclick="bangClick()">确定</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="../../script/base.min.js" id="loadjs" data-js="L/h-tool"></script>
<script type="text/javascript">
	define(function (require, exports, module) {

		pageParam = api.pageParam;
		lanYun.newVue('#vue', {

	    },function(e) {

	    });

		//提交邀请码
		bangClick = function () {
			var pdata = {};
			pdata.code = $('input[name="yaoqing"]').val();
			if(!pdata.code){
				lanYun.toast('请输入邀请码');
				return;
			}
			if(pdata.code.length < 7){
				lanYun.toast('请输入7位邀请码');
				return;
			}
			lanYun.post('UserLogin/yaoqingband_app', pdata ,function (ret) {
				if(ret.errcode == 0){
					lanYun.toast(ret.msg);
					//console.log(JSON.stringify(ret));
					lanYun.event('toIndex');
				}else{
					lanYun.toast(ret.msg);
				}
			});
		};

		// 跳过
		topMenuClick = function () {
			lanYun.event('toIndex');
		}

	});
</script>
</html>
